﻿// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License, See License.txt in the project root for license information.

using System.Diagnostics;

namespace NSQL.Expressions.Functions
{
    public class CountFunction : BaseExpression, ICountFunction
    {
        public IExpression Expr { get; set; }
        public AggregateType Type { get; set; }

        public CountFunction(IExpression expression, AggregateType type)
        {
            Expr = expression;
            Type = type;
        }
        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.FunctionVisitor.Visit(this);
    }
}